package com.bis.ymyy.service.impl;

import com.bis.ymyy.common.utils.InoculationSiteInfo;
import com.bis.ymyy.entity.InoculationSite;
import com.bis.ymyy.mapper.InoculationMapper;
import com.bis.ymyy.service.InoculationSiteService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class InoculationSiteServiceImpl implements InoculationSiteService {

    @Autowired
    private InoculationMapper inoculationMapper;

    @Override
    public List<InoculationSite> findAllSite() {
        return inoculationMapper.findAllSite();
    }

    @Override
    public List<InoculationSite> findByProvince(String province) {
        return inoculationMapper.findByProvince(province);
    }

    @Override
    public List<InoculationSite> findByCity(String city) {
        return inoculationMapper.findByCity(city);
    }

    @Override
    public List<InoculationSite> findByProvinceAndCity(InoculationSiteInfo inoculationSite) {
        return inoculationMapper.findByProvinceAndCity(inoculationSite);
    }
}
